package cn.jnetty.remoting.demo;
import cn.jnetty.api.JnettyHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.FullHttpRequest;

import java.nio.charset.Charset;

/**
 * @author 猪哥亮
 * @email 1030681978@qq.com
 * @date 2020/4/2 16:55
 * 描述：
 */
public class JnettyHttpHandler implements JnettyHandler<FullHttpRequest>  {
    private static final Charset DEFAULT_CHARSET = Charset.forName("UTF-8");
    /** 签名Key... */
    private static final String SIGN = "sign";
    /** 时间戳Key... */
    private static final String TIME = "time";

    private final String secretKey;

    public JnettyHttpHandler(String secretKey) {
        this.secretKey = secretKey;
    }

    @Override
    public void channelRead0(ChannelHandlerContext channelHandlerContext, FullHttpRequest fullHttpRequest) throws Exception {

    }

    @Override
    public void channelActive(ChannelHandlerContext ctx) throws Exception {

    }

    @Override
    public void channelInactive(ChannelHandlerContext ctx) throws Exception {

    }

    @Override
    public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {

    }

    @Override
    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {

    }
}
